# -- coding: utf-8 --
import redis


db = redis.Redis(host='172.16.3.243',decode_responses=True)
# db.set('name','ZhangSan')
key = db.get('name')
if key is None:
    raise Exception("未存储成功")
else:
    print(key)

